package org.elasticsearch.plugin.index.mapper.cnn;

import org.elasticsearch.common.inject.Inject;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.index.AbstractIndexComponent;
import org.elasticsearch.index.Index;
import org.elasticsearch.index.mapper.MapperService;
import org.elasticsearch.index.settings.IndexSettings;
import org.elasticsearch.threadpool.ThreadPool;

public class RegisterCNNType extends AbstractIndexComponent{

	@Inject
    public RegisterCNNType(Index index, @IndexSettings Settings indexSettings, MapperService mapperService, ThreadPool threadPool) {
        super(index, indexSettings);
        mapperService.documentMapperParser().putTypeParser("cnn", new CNNMapper.TypeParser(threadPool));
    }

}
